namespace DotNetNuke.Entities.Portals
{
    using DotNetNuke.Common;
    using System;

    /// -----------------------------------------------------------------------------
    /// <summary>
    /// The PortalTemplateValidator Class is used to validate the Portal Template
    /// </summary>
    /// <remarks>
    /// </remarks>
    /// <history>
    /// </history>
    /// -----------------------------------------------------------------------------
    public class PortalTemplateValidator : XmlValidatorBase
    {
        public bool Validate(string xmlFilename, string schemaFileName)
        {
            this.SchemaSet.Add("", schemaFileName);
            return this.Validate(xmlFilename);
        }
    }
}

